package com.bupt.ilink.mapper.userManagement;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bupt.ilink.entity.userManagement.UserRoles;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserRolesMapper extends BaseMapper<UserRoles> {

    @Select("SELECT role_id FROM user_roles WHERE role_name = #{role_name} and team_id = #{teamId}")
    Long selectRoleIdByRoleNameandTeamId(String role_name,Long teamId);

}
